const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Label)
    label: cc.Label;

    onLoad() {
        // init logic
         console.log(this.label)
      this.node.on('click', function ( event ) {
          cc.director.loadScene("h2")
          
	  }.bind(this));
    }
}
